package com.lin.util;

import java.io.FileNotFoundException;


public interface TownConfig {

    void parseInput(String input);


    void init(String path) throws FileNotFoundException;


    String shortestPathBetween(String start, String dest) throws TownConfigImpl.NoSuchRouteException;


    int lengthOfShortestPathBetween(String start, String dest) throws TownConfigImpl.NoSuchRouteException;


    int distance(String... townNames) throws TownConfigImpl.NoSuchRouteException;


    int countRoutesWithMaxHops(String start, String dest, int maxHops);


    int countRoutesWithHops(String start, String dest, int hops);


    int countRoutesWithMaxDistance(String start, String dest, int maxDistance);
}
